package com.carleasoft.mps.data.mybatisplus.page;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.util.CollectionUtils;
/**
 * <p>Description: 分页类</p>
 * @author haoyi
 */
public class Pagehelper<T> extends Page<T>{

    public Pagehelper(PageBase pageBase){
        super(pageBase.getCurrent(),pageBase.getSize());
        if(!CollectionUtils.isEmpty(pageBase.getOrders())){
            super.setOrders(pageBase.getOrders());
        }
    }
}
